import "./style.css";
import Icon from "../icon.png";

function component() {
    let element = document.createElement('div');

    // Lodash（目前通过一个 script 脚本引入）对于执行这一行是必需的
    element.innerHTML = "Hello World!";
    element.classList.add("hello");

    let myIcon = document.createElement("img");
    myIcon.src = Icon;

    element.appendChild(myIcon);

    return element;
}

document.body.appendChild(component());